import request from "@/utils/requestMd5";

// 立即授权
export function authApp(data) {
  return request({
    url: "/authApp",
    method: "post",
    data: data
  });
}

// 成功后获取token
export function queryAuth(data) {
  return request({
    url: "/queryAuth",
    method: "post",
    data: data
  });
}

// 授权结果查询
export function getAuth(data) {
  return request({
    url: "/getAuth",
    method: "post",
    data: data
  });
}

export function commit(data) {
  return request({
    url: "/commit",
    method: "post",
    data: data
  });
}

// 获取体验二维码
export function getQrcode(data) {
  return request({
    url: "/getQrcode",
    method: "post",
    data: data
  });
}

// 提交审核
export function submitAudit(data) {
  return request({
    url: "/submitAudit",
    method: "post",
    data: data
  });
}

export function undoCodeAudit(data) {
  return request({
    url: "/undoCodeAudit",
    method: "post",
    data: data
  });
}

// 查询审核结果
export function getAuditStatus(data) {
  return request({
    url: "/getAuditStatus",
    method: "post",
    data: data
  });
}

// 发布小程序
export function release(data) {
  return request({
    url: "/release",
    method: "post",
    data: data
  });
}

// 查询小程序发布
export function getRelease(data) {
  return request({
    url: "/getRelease",
    method: "post",
    data: data
  });
}

// 获取程序设置的请求地址
export function getRequestUrl(data) {
  return request({
    url: "/getRequestUrl",
    method: "post",
    data: data
  });
}

// 设置小程序的请求地址
export function setRequestUrl(data) {
  return request({
    url: "/setRequestUrl",
    method: "post",
    data: data
  });
}
